﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    [Table("AA001")]
    /// <summary>
    /// 账户信息
    /// </summary>
    public class EntityAccount : EntityBase
    {
        [StringLength(50)]
        [Column("A002")]
        /// <summary>
        /// 账户名
        /// </summary>
        public string? AccountName { get; set; }

        [MinLength(6)]
        [MaxLength(12)]
        [Required]
        [Column("A003")]
        /// <summary>
        /// 账户密码
        /// </summary>
        public string? AccountPassWord { get; set; }

        [Column("A004")]
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }


        [ForeignKey("P001")]
        public List<EntityEntryForm>? EntityEntryForms { get; set; }
    }
}
